import React,{Component} from "react";
import "./index.css"
class Index extends Component{
    closeDialog(){
        this.props.closeDialog()
    }
    render(){
       return(
          <div className="tipdialog">
                <div className="dialog">
                       <h3>提示</h3>
                       <p>{this.props.msg}</p>
                       <span onClick={this.closeDialog.bind(this)}>确定</span>      
                </div>
          </div>
       )
    }
}

export default Index